// vite.config.js
import { defineConfig, loadEnv } from "file:///D:/work/PanSoft/dapin/node_modules/.pnpm/vite@5.0.0_@types+node@22.15.21_sass@1.89.0_terser@5.39.2/node_modules/vite/dist/node/index.js";
import path from "path";
import vue from "file:///D:/work/PanSoft/dapin/node_modules/.pnpm/@vitejs+plugin-vue@5.2.4_vite@5.0.0_@types+node@22.15.21_sass@1.89.0_terser@5.39.2__vue@3.5.14_typescript@5.6.3_/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import vueDevTools from "file:///D:/work/PanSoft/dapin/node_modules/.pnpm/vite-plugin-vue-devtools@7.7.6_rollup@4.41.1_vite@5.0.0_@types+node@22.15.21_sass@1.89.0_ters_qmku4jpvkivrg7ibuve4x5ubxy/node_modules/vite-plugin-vue-devtools/dist/vite.mjs";
import Components from "file:///D:/work/PanSoft/dapin/node_modules/.pnpm/unplugin-vue-components@28.5.0_@babel+parser@7.27.2_vue@3.5.14_typescript@5.6.3_/node_modules/unplugin-vue-components/dist/vite.js";
import { AntDesignVueResolver } from "file:///D:/work/PanSoft/dapin/node_modules/.pnpm/unplugin-vue-components@28.5.0_@babel+parser@7.27.2_vue@3.5.14_typescript@5.6.3_/node_modules/unplugin-vue-components/dist/resolvers.js";
import { createSvgIconsPlugin } from "file:///D:/work/PanSoft/dapin/node_modules/.pnpm/vite-plugin-svg-icons@2.0.1_vite@5.0.0_@types+node@22.15.21_sass@1.89.0_terser@5.39.2_/node_modules/vite-plugin-svg-icons/dist/index.mjs";
import AutoImport from "file:///D:/work/PanSoft/dapin/node_modules/.pnpm/unplugin-auto-import@0.17.6_@vueuse+core@10.11.0_vue@3.5.14_typescript@5.6.3___rollup@4.41.1/node_modules/unplugin-auto-import/dist/vite.js";
var __vite_injected_original_dirname = "D:\\work\\PanSoft\\dapin";
var vite_config_default = defineConfig(({ mode, command }) => {
  const env = loadEnv(mode, process.cwd());
  const { VITE_APP_ENV } = env;
  return {
    base: VITE_APP_ENV === "production" ? "/" : "/",
    plugins: [
      vue(),
      mode === "development" && vueDevTools(),
      Components({
        resolvers: [
          AntDesignVueResolver({
            importStyle: false
          })
        ]
      }),
      AutoImport({
        imports: ["vue", "vue-router", "vuex"],
        dts: "src/auto-imports.d.ts"
      }),
      createSvgIconsPlugin({
        iconDirs: [path.resolve(__vite_injected_original_dirname, "src/assets/icons/svg")],
        symbolId: "icon-[name]",
        inject: "body-first"
      })
    ].filter(Boolean),
    resolve: {
      alias: {
        "~": path.resolve(__vite_injected_original_dirname, "./"),
        "@": path.resolve(__vite_injected_original_dirname, "./src")
      },
      extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json", ".vue"]
    },
    server: {
      port: 80,
      host: true,
      open: true,
      proxy: {
        "/dev-api": {
          target: "http://localhost:8080",
          changeOrigin: true,
          rewrite: (p) => p.replace(/^\/dev-api/, "")
        }
      }
    },
    css: {
      postcss: {
        plugins: [
          {
            postcssPlugin: "internal:charset-removal",
            AtRule: {
              charset: (atRule) => {
                if (atRule.name === "charset") {
                  atRule.remove();
                }
              }
            }
          }
        ],
        config: {
          path: "./postcss.config.js"
        }
      }
    }
  };
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFx3b3JrXFxcXFBhblNvZnRcXFxcZGFwaW5cIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkQ6XFxcXHdvcmtcXFxcUGFuU29mdFxcXFxkYXBpblxcXFx2aXRlLmNvbmZpZy5qc1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vRDovd29yay9QYW5Tb2Z0L2RhcGluL3ZpdGUu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